#obj-m	:= relinux.o 
obj-m	:= glink-misc.o 
glink-misc-objs := glink-misc-all.o battery.o apd.o eim.o

# KERNELDIR ?= /lib/modules/$(shell uname -r)/build
# KERNELDIR = /work/EasyArm/linux-2.6.35.3
KERNELDIR = /work/forlinx/linux-4.1.15
PWD       := $(shell pwd)

all:
	$(MAKE) -C $(KERNELDIR) M=$(PWD)

clean:
	# rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions
	$(MAKE) -C $(KERNELDIR) M=$(PWD) clean 
copy:
	cp pwm.ko /work/armdebug/

